package com.ruoyi.common.core.constant;

/**
 * 通用常量信息
 *
 * @author ruoyi
 */
public class Constants {

  /**
   * 登录解密用的私钥
   *
   * @author shenli
   */
  public static final String PRIVATE_KEY = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCS7DZ6IFFqQjS9d9yvwcjrk8unrKgk2YUmTt/StzxSmlr0M41FGSN09bi5Z6JauX6xQ/+fZbIpJSMgv1aCDW9wuQVEF1fSwd9f7yC576AOAKWKiNVES/Crsr3agXMIZOUJ9gX5+0+0ymu1ybSKkTJfYglTAVxVXLK9c2gmF0c2C00xJScIJXS7DFG2QqWwMAsBuwHYga+Sayta80UZdvhUPED+DvrkAC4Q1sKGXsfCYyMZSZs0r9aAVJt8fY8zAzDyaF0smSwjIsKZiBFZzyxy8bRchdgIb5mco1FHyLohY+U9CoQ4lZb24JK2YkyeE6Z4Go3PAWkeyMsntngkcRHtAgMBAAECggEAHe8bgFFiVRRtG2c24uZIEds4ZI60aWGaE76BMrTbiPbi7hssvrXK+BLyUnAPb42YhvRUOf0lyeVDnXHuZavoFx7TOFbLMWkHokudrtRoF0JBeBK95N7WB51wufqi3cR0t81U1WRDDpIpVM3mR08i5LUcMjm2PrwWvKutPgmDHDrtFDdNDX2AOVWyItLzh3oT3+iXiCy9uLZ5q8MfHvU3fdAJsmoaYIe9wSkYfKytD9+MBf3J1GpZx4kbb3mTq7FzpfXfBldcJomubtT1HZj7e/ERYtCflORHaNrPqbfPBFKPsTMi55O3FqS7bC7OOhAOjrlKMPGHdmQjqGygIw67DwKBgQDNb9RQIVwWE8vsllhogKn1hqtH40M3CvoV0vwGIbQuPTLaNguRaRNtkX3CkGvu77hp2bukLk7iJurNaW9EXHFjj/GwWSxorND4rH/dbcVM67h9U8cLEUpOvfR2Sjt1ncGK4YvILYjjlZGnMIIpbW3SU8dSms2QfAd4x+r6A64PHwKBgQC3FYX/3g/mqm+KZUAdfEJodZQpQisPiqsj9qITG/2GcIEdMFWbuBA+h4Saz7TAos0BhJ4GeVfB8AFiAeVxUlguu/+dUiW16zeSLolqnrRkKiPq7nDHx2smq3M1qnpqp751oAylne1oeeGWgSBAeAfpnoYKNEtONle4ErxEwrHZcwKBgQC71FM6MEYRqWf5mDycz4aVhdt0jsUVvmOJMK5crNQgsrOb724ENR4eP7fL/F+yxlrF7N0y72QQQaTMymmBB0Rk02cW5XFFAzzNIGqH+aU6/wpfDAoghF58QBETViunDeW3JSC4lWljK41QX3mihvqyIwdK716ji8MJG0Ar9tFd4QKBgBsb7MN+NgyJoAp2A5BaHdspzc5uJcIfXkfs9QKvWlLVxch0p7hvALjBiDkEGFeNw5097cg3n27wAsRoU3j8IGKLI8Y/q6XMNmZGzcIjzcInGzpmI/zw4kTPjjecDpRMUj9Ie5bqU4TsxyJp7ESfgUxuVJqeM6hZE5QF8iqcSYlRAoGBAKgH+kCLNpGf7U2hgoBMIBxWtHiUkhxre/ezARV3hX3hBk93LBAhVKyQid2PaWhK7IY+pETOCZRB+8SlktIRj+VRTpHNwgJ4mTrH3gZOKavebsaFsTeuBbz8HQOUArqL0dyglKJYS4EpD3qgMIjYSEkz5FcDjaNzCblzBDv3A9Z0";
  public static final String PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkuw2eiBRakI0vXfcr8HI65PLp6yoJNmFJk7f0rc8Uppa9DONRRkjdPW4uWeiWrl+sUP/n2WyKSUjIL9Wgg1vcLkFRBdX0sHfX+8gue+gDgCliojVREvwq7K92oFzCGTlCfYF+ftPtMprtcm0ipEyX2IJUwFcVVyyvXNoJhdHNgtNMSUnCCV0uwxRtkKlsDALAbsB2IGvkmsrWvNFGXb4VDxA/g765AAuENbChl7HwmMjGUmbNK/WgFSbfH2PMwMw8mhdLJksIyLCmYgRWc8scvG0XIXYCG+ZnKNRR8i6IWPlPQqEOJWW9uCStmJMnhOmeBqNzwFpHsjL7Z4JHER7QIDAQAB";

  /**
   * UTF-8 字符集
   */
  public static final String UTF8 = "UTF-8";

  /**
   * GBK 字符集
   */
  public static final String GBK = "GBK";

  /**
   * www主域
   */
  public static final String WWW = "www.";

  /**
   * RMI 远程方法调用
   */
  public static final String LOOKUP_RMI = "rmi:";

  /**
   * LDAP 远程方法调用
   */
  public static final String LOOKUP_LDAP = "ldap:";

  /**
   * LDAPS 远程方法调用
   */
  public static final String LOOKUP_LDAPS = "ldaps:";

  /**
   * http请求
   */
  public static final String HTTP = "http://";

  /**
   * https请求
   */
  public static final String HTTPS = "https://";

  /**
   * 成功标记
   */
  public static final Integer SUCCESS = 200;

  /**
   * 失败标记
   */
  public static final Integer FAIL = 500;

  /**
   * 登录成功状态
   */
  public static final String LOGIN_SUCCESS_STATUS = "0";

  /**
   * 登录失败状态
   */
  public static final String LOGIN_FAIL_STATUS = "1";

  /**
   * 登录成功
   */
  public static final String LOGIN_SUCCESS = "Success";

  /**
   * 注销
   */
  public static final String LOGOUT = "Logout";

  /**
   * 注册
   */
  public static final String REGISTER = "Register";

  /**
   * 登录失败
   */
  public static final String LOGIN_FAIL = "Error";

  /**
   * 当前记录起始索引
   */
  public static final String PAGE_NUM = "pageNum";

  /**
   * 每页显示记录数
   */
  public static final String PAGE_SIZE = "pageSize";

  /**
   * 排序列
   */
  public static final String ORDER_BY_COLUMN = "orderByColumn";

  /**
   * 排序的方向 "desc" 或者 "asc".
   */
  public static final String IS_ASC = "isAsc";

  /**
   * 验证码有效期（分钟）
   */
  public static final long CAPTCHA_EXPIRATION = 2;

  /**
   * 资源映射路径 前缀
   */
  public static final String RESOURCE_PREFIX = "/profile";

  /**
   * 自动识别json对象白名单配置（仅允许解析的包名，范围越小越安全）
   */
  public static final String[] JSON_WHITELIST_STR = {"com.ruoyi"};

  /**
   * 定时任务白名单配置（仅允许访问的包名，如其他需要可以自行添加）
   */
  public static final String[] JOB_WHITELIST_STR = {"com.ruoyi.job.task"};

  /**
   * 定时任务违规的字符
   */
  public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
      "org.springframework", "org.apache", "com.ruoyi.common.core.utils.file"};
}
